<html>
	<head>
		<title>Newton Game Dynamics DBPro Wrapper v1.53</title></head>
	<body alink="#fa634e" bgcolor="#efeff9" link="#3646fc" text="#000000" vlink="#ff6633">
		<h1>Newton SDK DBPro Wrapper v1.53</h1>
		<P>By Walaber<BR>
		   All Coding between 1.31-1.32B by Kjelle<BR>
		   Updated to 1.53 by Tiresius</P>
        <p><a href="ndb_docs_main.htm">Main Index of Commands</a></p>
		<h2>Vehicle Commands</h2>
		<p><a name="NDB_NewtonConstraintCreateVehicle"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="#fafafa">NDB_NewtonConstraintCreateVehicle</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">syntax: int =
						NDB_NewtonConstraintCreateVehicle( body )</font></td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">body</td>
									<td>ID of the rigid body&nbsp;for&nbsp;chassis (integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">(vector 1)</td>
								<td>temp vector used to pass values to the function</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: </font>index to the created vehicle joint
						(integer)</p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> This command adds the Vehicle Joint to a rigid body. &nbsp;Any
						massed rigid body can be used for the vehicle chassis. &nbsp;Make sure you fill
						temp vector 1 with the world up vector (usually [0.0, 1.0, 0.0] in most
						projects) before calling this function!</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleAddTire"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="#fafafa">NDB_NewtonVehicleAddTire</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: int = NDB_NewtonVehicleAddTire( vehicle, mass, rad, height, susShock, susSpring, susLength)</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">mass</td>
								<td>mass of the tire (float)</td>
							</tr>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">rad</td>
								<td>radius of the tire (float)</td>
							</tr>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">height</td>
								<td>width of the tire (float)</td>
							</tr>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">susShock</td>
								<td>suspension damper for the tire (float)</td>
							</tr>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">susSpring</td>
								<td>spring constant for the tire (float)</td>
							</tr>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">susLength</td>
								<td>suspension travel for the tire (float)</td>
							</tr>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">(vector 1)</td>
								<td>temp vector used for passing values</td>
							</tr>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">(matrix)</td>
								<td>temp matrix used for passing values</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: </font>index to the created tire (integer)</p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> This command adds a tire to the vehicle. &nbsp;First set the
						temp matrix (NDB_BuildMatrix) to the local matrix of the tire. &nbsp;Then set
						temp vector 1 to the pin direction vector for the axel of the tire (the
						direction the tire will roll&nbsp;around). &nbsp;Finally call this function,
						with all of the values to describe the tire.</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleReset"></a></p>
		<table id="Table9" bordercolordark="#0506a5" width="85%" bgColor="#ffffff" bordercolorlight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="#fafafa">NDB_NewtonVehicleReset</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">syntax:
						NDB_NewtonVehicleReset( vehicle )</font></td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table id="Table10" width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody></table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: nothing.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> Reset all tires velocities to zero. This function is useful for
						reposition the vehicle.</p>
					<P>v1.31</P>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleRemoveTire"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="#fafafa">NDB_NewtonVehicleRemoveTire</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">syntax:
						NDB_NewtonVehicleRemoveTire( vehicle,&nbsp;tire_id&nbsp;)</font></td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_id</td>
								<td>ID of the tire to remove.</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: nothing.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> Removes the specified tire from the vehicle.</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_VehicleTireSetTorque"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="#fafafa">NDB_VehicleTireSetTorque</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">syntax:
						NDB_VehicleTireSetTorque vehicle, tire, torque</font></td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_id</td>
								<td>ID of the tire (integer)</td>
							</tr>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">torque</td>
								<td>torque for the tire (float)</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: nothing.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> Sets the torque for the specified tire. &nbsp;this will cause
						the tire to rotate, propelling the vehicle.</p>
				</td>
			</tr>
		</table>
		<p>&nbsp;</p>
		<p><a name="NDB_VehicleTireSetSteeringAngle"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="#fafafa">NDB_VehicleTireSetSteeringAngle</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">syntax:
						NDB_VehicleTireSetSteeringAngle vehicle, tire, angle</font></td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_id</td>
								<td>ID of the tire (integer)</td>
							</tr>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">ange</td>
								<td>steering&nbsp;angle for the tire (float)</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: nothing.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> Sets the steering angle for a tire. &nbsp;use this to steer
						your vehicle!</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleGetTireSteeringAngle"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="#fafafa">NDB_NewtonVehicleGetTireSteeringAngle</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">syntax: float =
						NDB_NewtonVehicleGetTireSteeringAngle( vehicle, tire )</font></td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_id</td>
								<td>ID of the tire (integer)</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: steering angle for the specified tire.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> Gets the steering angle for a tire.
					</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleTireLostSideGrip"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="white">NDB_NewtonVehicleTireLostSideGrip</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: int&nbsp;= NDB_NewtonVehicleTireLostSideGrip( vehicle, tire )</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_id</td>
								<td>ID of the tire (integer)</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: 1 = lost grip, 0 = has grip.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> useful for determining if the car is sliding/skidding sideways.</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleTireLostTraction"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="white">NDB_NewtonVehicleTireLostTraction</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: int = NDB_NewtonVehicleTireLostTraction( vehicle, tire )</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_id</td>
								<td>ID of the tire (integer)</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: 1 = lost traction, 0 = has traction.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> useful for determining if the car`s tires are spinning.</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleGetTireOmega"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="white">NDB_NewtonVehicleGetTireOmega</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: float = NDB_NewtonVehicleGetTireOmega( vehicle, tire )</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_id</td>
								<td>ID of the tire (integer)</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: rotating speed (omega) of the tire.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> useful for determining how fast the tire is spinning.</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleGetTireNormalLoad"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="white">NDB_NewtonVehicleGetTireNormalLoad</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: float = NDB_NewtonVehicleGetTireNormalLoad( vehicle, tire )</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_id</td>
								<td>ID of the tire (integer)</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: load on the tire.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> useful for determining how much weight is being put on the
						tire.</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleGetTireLateralSpeed"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="white">NDB_NewtonVehicleGetTireLateralSpeed</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: float = NDB_NewtonVehicleGetTireLateralSpeed( vehicle, tire )</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_id</td>
								<td>ID of the tire (integer)</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: lateral&nbsp;speed&nbsp;of the tire.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> this is the actual speed the tire is moving (forward/backward)</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleGetTireLongitudinalSpeed"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="white">NDB_NewtonVehicleGetTireLongitudinalSpeed</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: float = NDB_NewtonVehicleGetTireLongitudinalSpeed( vehicle, tire )</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_id</td>
								<td>ID of the tire (integer)</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: longitudinal speed of the tire.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> this is the actual speed the tire is moving (left/right)</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleSetTireMaxSideSleepSpeed"></a></p>
		<table id="Table1" bordercolordark="#0506a5" width="85%" bgColor="#ffffff" bordercolorlight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="white">NDB_NewtonVehicleSetTireMaxSideSleepSpeed</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: NDB_NewtonVehicleSetTireMaxSideSleepSpeed vehicle, tire, speed</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<TABLE id="Table2" width="95%" border="0">
							<TR>
								<TD width="5%"></TD>
								<TD width="15%">vehicle</TD>
								<TD>ID of the vehicle&nbsp;joint&nbsp;(integer)</TD>
							</TR>
							<TR>
								<TD width="5%">&nbsp;</TD>
								<TD width="15%">tire_id</TD>
								<TD>ID of the tire (integer)</TD>
							</TR>
							<TR>
								<TD width="5%">&nbsp;</TD>
								<TD width="15%">speed</TD>
								<TD>Maximum side speed before the vehicle is considered to loose side grip.
								</TD>
							</TR>
						</TABLE>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: Nothing.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> Set the maximum side slip velocity for the tire to be
						considered to lose grip.
					</p>
					<P>Tire operation involve a mix of elastic distortion and sliding friction. To have
						and idea how to code a convincing approximation of a real tire we must run some
						experiment and make some reflection upon the result. First we will run a static
						test: keeping a tire at equilibrium applying a constant load and without
						rolling, we will apply a lateral force perpendicular to the tire plane and
						applied at the tire center. If we run this experiment we will find that the
						tire will deflect in response to the lateral force. If we increase the
						magnitude of the lateral force, the magnitude of the deflection is proportional
						to the magnitude of the lateral force, until the tire begins to slide. This
						show that when a tire is not moving it behaves like a spring (elastic
						distortion). If we repeat this experiment but this time increasing the tire
						load, but still not moving the tire, we will see that the max deflection is
						proportional to the magnitude of the tire load. This indicates the tire
						behavior is proportional to two variables, the lateral force and the tire load.
						(Fortunately the side force in practice is a linear function of the tire load
						so this keeps the model simple) Now we will run the first experiment but this
						time we will rotate the tire with a constant angular velocity (think of those
						tune up machines at check up stations.) With the tire rolling at constant
						angular velocity if we apply a lateral force we will see that as the tire
						deflect, the part of the tire in contact with the floor keeps rolling and
						another part take its place, but this part also start to deflect, allowing the
						tire to move sideways with a velocity proportional to the tire rolling angular
						velocity. Notice that the tire does this without sliding as the part of it in
						contact with the floor never loses grip. Now if we increase the lateral force
						we will find that the lateral speed of the tire will also increase. This
						suggests that the side speed of the tire is proportional to the lateral force
						and also proportional to the rolling angular velocity. This is the tire elastic
						properties give then some kind of damping property when they are rolling. There
						is not known macroscopic mathematical model that can explain this behavior. The
						best we can do is to write the values of the experiment and use then to
						interpolate and extrapolate intermediate values. One thing we know is that the
						tires operates within some limits, and we can use those parameters to treat
						then as a constraint optimization problem, which is the Newton approach. When
						the tire is rolling and sideslipping is not that the tire lost grip, nor that
						the tire is generating some force. It is rather that the tire have the capacity
						to absorb some of the lateral force by sliding and convert it to side velocity,
						this means that for the tire to loose grip a stronger force is necessary. In
						another word at rest a tire will lose grip under a much lower lateral force
						than if the tire was rolling. In Newton this behavior is treaded as a constrain
						optimization problem by asking the application how much side slip velocity is
						the tire allow to have before it is considered to lose grip, and how much of
						the lateral forces generated by the rigid body dynamics will be adsorbed by the
						tire at a given speed. It is the application responsibility to set these
						parameters as close to the real tire as it chooses. This approach allows for a
						very wide range of behaviors form arcade, to toy cars to very realistic.</P>
					<P>
						<H4>Remarks</H4>
					<P>The vehicle joint provides a rich set of interface functions to the application.
						Which function to use is only determined by the level of fidelity the
						application want to achieve. In not case the use of one method is better than
						other, and it may be that some tweaking and trial is necessary before the
						desired vehicle behavior is achieved.
					</P>
					<P>
						<H4>Remarks</H4>
					<P>The parameters applied to a tire are reset to default values each time the
						update function is called. So the application should set the desired value in
						each simulation frame.
					</P>
					<P>
						<H4>Remarks</H4>
					<P>This function can only be called from the vehicle update call back. It can be
						used by the application to generate the custom vehicle dynamics.
					</P>
					<P>V1.31</P>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleSetTireSideSleepCoeficient"></a></p>
		<table id="Table3" bordercolordark="#0506a5" width="85%" bgColor="#ffffff" bordercolorlight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="white">NDB_NewtonVehicleSetTireSideSleepCoeficient</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: NDB_NewtonVehicleSetTireSideSleepCoeficient vehicle, tire, Coeficient</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<TABLE id="Table4" width="95%" border="0">
							<TR>
								<TD width="5%"></TD>
								<TD width="15%">vehicle</TD>
								<TD>ID of the vehicle&nbsp;joint&nbsp;(integer)</TD>
							</TR>
							<TR>
								<TD width="5%">&nbsp;</TD>
								<TD width="15%">tire_id</TD>
								<TD>ID of the tire (integer)</TD>
							</TR>
							<TR>
								<TD width="5%">&nbsp;</TD>
								<TD width="15%">coeficient</TD>
								<TD>Side slip coeficient.</TD>
							</TR>
						</TABLE>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns:&nbsp;nothing.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> Set the coefficient that tell the engine how much of the
						lateral force can be absorbed by the tire.</p>
					<P>See description of side slip on function <B>NewtonVehicleSetTireMaxSideSleepSpeed</B></P>
					<P>
						<H4>Remarks</H4>
					<P>The vehicle joint provides a rich set of interface functions to the application.
						Which function to use is only determined by the level of fidelity the
						application want to achieve. In not case the use of one method is better than
						other, and it may be that some tweaking and trial is necessary before the
						desired vehicle behavior is achieved.
					</P>
					<P>
						<H4>Remarks</H4>
					<P>The parameters applied to a tire are reset to default values each time the
						update function is called. So the application should set the desired value in
						each simulation frame.
					</P>
					<P>
						<H4>Remarks</H4>
					<P>This function can only be called from the vehicle update call back. It can be
						used by the application to generate the custom vehicle dynamics.
					</P>
					<P>v1.31</P>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleSetTireMaxLongitudinalSlideSpeed"></a></p>
		<table id="Table5" bordercolordark="#0506a5" width="85%" bgColor="#ffffff" bordercolorlight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="white">NDB_NewtonVehicleSetTireMaxLongitudinalSlideSpeed</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: NDB_NewtonVehicleSetTireMaxLongitudinalSlideSpeed vehicle, tire, speed</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<TABLE id="Table6" width="95%" border="0">
							<TR>
								<TD width="5%"></TD>
								<TD width="15%">vehicle</TD>
								<TD>ID of the vehicle&nbsp;joint&nbsp;(integer)</TD>
							</TR>
							<TR>
								<TD width="5%">&nbsp;</TD>
								<TD width="15%">tire_id</TD>
								<TD>ID of the tire (integer)</TD>
							</TR>
							<TR>
								<TD width="5%">&nbsp;</TD>
								<TD width="15%">speed</TD>
								<TD>Maximum side speed before the vehicle is considered to loose side traction.</TD>
							</TR>
						</TABLE>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: nothing.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><STRONG>Comments: </STRONG>Set the maximum side slide velocity for the tire to
						be considered to lose traction.
					</p>
					<H4>Remarks</H4>
					<P>The explanation of longitudinal slide is similar to the side slip, however it is
						not so critical to achieve realistic behavior. See description of side slip on
						function <B>NewtonVehicleSetTireMaxSideSleepSpeed</B>
					</P>
					<P>
						<H4>Remarks</H4>
					<P>The vehicle joint provides a rich set of interface functions to the application.
						Which function to use is only determined by the level of fidelity the
						application want to achieve. In not case the use of one method is better than
						other, and it may be that some tweaking and trial is necessary before the
						desired vehicle behavior is achieved.
					</P>
					<P>
						<H4>Remarks</H4>
					<P>The parameters applied to a tire are reset to default values each time the
						update function is called. So the application should set the desired value in
						each simulation frame.
					</P>
					<P>
						<H4>Remarks</H4>
					<P>This function can only be called from the vehicle update call back. It can be
						used by the application to generate the custom vehicle dynamics.
					</P>
					<P>v1.31</P>
				</td>
			</tr>
		</table>
		<p><a name="NDB_NewtonVehicleSetTireLongitudinalSlideCoeficient"></a></p>
		<table id="Table7" bordercolordark="#0506a5" width="85%" bgColor="#ffffff" bordercolorlight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="white">NDB_<FONT class="ApiName">NewtonVehicleSetTireLongitudinalSlideCoeficient</FONT></font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: NDB_NewtonVehicleGetTireLongitudinalSpeed vehicle, tire, coeficient</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<TABLE id="Table8" width="95%" border="0">
							<TR>
								<TD width="5%"></TD>
								<TD width="15%">vehicle</TD>
								<TD>ID of the vehicle&nbsp;joint&nbsp;(integer)</TD>
							</TR>
							<TR>
								<TD width="5%">&nbsp;</TD>
								<TD width="15%">tire_id</TD>
								<TD>ID of the tire (integer)</TD>
							</TR>
							<TR>
								<TD width="5%">&nbsp;</TD>
								<TD width="15%">coeficient</TD>
								<TD>longitudinal slide coefficient.
								</TD>
							</TR>
						</TABLE>
					</font>
				</td>
			</tr>
			</FONT></TD></TR>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: Nothing.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> Set the coefficient that tell the engine how much of the
						longitudinal force can be absorbed by the tire.</p>
					<P>The explanation of longitudinal slide is similar to the side slip, however it is
						not so critical to achieve realistic behavior. See description of side slip on
						function <B>NewtonVehicleSetTireMaxSideSleepSpeed</B></P>
					<P>
						<H4>Remarks</H4>
					<P>The vehicle joint provides a rich set of interface functions to the application.
						Which function to use is only determined by the level of fidelity the
						application want to achieve. In not case the use of one method is better than
						other, and it may be that some tweaking and trial is necessary before the
						desired vehicle behavior is achieved.
					</P>
					<P>
						<H4>Remarks</H4>
					<P>The parameters applied to a tire are reset to default values each time the
						update function is called. So the application should set the desired value in
						each simulation frame.
					</P>
					<P>
						<H4>Remarks</H4>
					<P>This function can only be called from the vehicle update call back. It can be
						used by the application to generate the custom vehicle dynamics.
					</P>
				</td>
			</tr>
		</table>
		<p><a name="NDB_VehicleTireSetMaxBrake"></a></p>
		<table cellSpacing="0" bordercolordark="#0506a5" width="85%" bgColor="#ffffff" bordercolorlight="#0506a5"
			border="1">
			<tr>
				<td bgColor="#232323">
					<h3><font color="white">NDB_VehicleTireSetMaxBrake</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: NDB_VehicleTireSetMaxBrake vehicle, tire, maxbrake</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_id</td>
								<td>ID of the tire (integer)</td>
							</tr>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">maxbrake</td>
								<td>maximum braking force the tire can handle (float)</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: nothing.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> set this value to the absolute max braking force the tire can
						handle. &nbsp;then when you turn on the brakes for the tire, Newton sill
						calculate the necessary force to stop the tire. &nbsp;if it's less than this
						maximum, it'll lock the tire. &nbsp;if it's more, it'll apply this amount.</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_VehicleTireBrakesOn"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="white">NDB_VehicleTireBrakesOn</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: NDB_VehicleTireBrakesOn vehicle, tire, flag</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_id</td>
								<td>ID of the tire (integer)</td>
							</tr>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">flag</td>
								<td>1 = brakes on, 0 = brakes off (integer)</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: nothing.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> use this function to turn the brakes on/off for a tire.</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_VehicleTireSetDBProData"></a></p>
		<table borderColorDark="#0506a5" width="85%" bgColor="#ffffff" borderColorLight="#0506a5"
			border="1" cellspacing="0">
			<tr>
				<td bgColor="#232323">
					<h3><font color="white">NDB_VehicleTireSetDBProData</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: NDB_VehicleTireSetDBProData vehicle, tire, tire_obj</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa"><font face="monospace">
						<table width="95%" border="0">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_id</td>
								<td>ID of the tire (integer)</td>
							</tr>
							<tr>
								<td width="5%">&nbsp;</td>
								<td width="15%">tire_obj</td>
								<td>Dark basic object to use as the visual object for the tire (integer)</td>
							</tr>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgColor="#dadada">
					<p><font face="monospace">returns: nothing.</font></p>
				</td>
			</tr>
			<tr>
				<td bgColor="#fafafa">
					<p><b>Comments:</b> use this function to set which object represents the vehicle
						tire. it will be positioned and rotated automatically by Newton for you.</p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_VehicleExist"></a></p>
        <table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
            border="1" width="85%">
			<tr>
				<td bgcolor="#232323">
					<h3><font color="white">NDB_VehicleExist</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: int = NDB_VehicleExist( vehicle )</font>
				</td>
			</tr>
			<tr>
				<td bgcolor="#fafafa"><font face="monospace">
						<table border="0" width="95%">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgcolor="#dadada">
					<p><font face="monospace">returns: 1 = vehicle exists, 0 = behicle does not exist..</font></p>
				</td>
			</tr>
		</table>
		<p><a name="NDB_DestroyVehicle"></a></p>
		<table cellspacing="0" bordercolorlight="#0506a5" bordercolordark="#0506a5" bgcolor="#ffffff"
			border="1" width="85%">
			<tr>
				<td bgcolor="#232323">
					<h3><font color="white">NDB_DestroyVehicle</font></h3>
				</td>
			</tr>
			<tr>
				<td bgColor="#747ff6"><font face="monospace" color="#ffffff">
				  syntax: NDB_DestroyVehicle vehicle</font>
				</td>
			</tr>
			<tr>
				<td bgcolor="#fafafa"><font face="monospace">
						<table border="0" width="95%">
							<tbody>
								<tr>
									<td width="5%"></td>
									<td width="15%">vehicle</td>
									<td>ID of the vehicle&nbsp;joint&nbsp;(integer)</td>
								</tr>
							</tbody>
						</table>
					</font>
				</td>
			</tr>
			<tr>
				<td bgcolor="#dadada">
					<p><font face="monospace">returns: nothing.</font></p>
				</td>
			</tr>
			<tr>
				<td bgcolor="#fafafa">
					<p><b>Comments:</b> use this function to destroy a vehicle joint.</p>
				</td>
			</tr>
		</table>
		<p>&nbsp;</p>
		<p>
		</p>
	</body>
</html>
